package com.be.beadmin.quality.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Author Jiahao Liu
 * @CreateTime 2023-05-16
 * @Description 柜体入库质量表
 */
@Data
@Entity
@Table(name = "T_QM_ProductQuality")
public class ProductQuality extends BaseEntity {

    @Column(name = "InspectionTaskId", columnDefinition = "VARCHAR(50) COMMENT '检验任务id' ")
    private String inspectionTaskId;

    @Column(name = "ProductId", columnDefinition = "VARCHAR(50) COMMENT '柜体id' ")
    private String productId;

    @Column(name = "ProductDesc", columnDefinition = "VARCHAR(50) COMMENT '柜体描述' ")
    private String productDesc;

    @Column(name = "Status", columnDefinition = "int COMMENT '检验状态- 待检验0/ 已检验 1 /已检验但退回重新待检验-1' ")
    private int status;

    @Column(name = "ProjectId", columnDefinition = "VARCHAR(50) COMMENT '项目id' ")
    private String projectId;

    @Column(name = "ProjectName", columnDefinition = "VARCHAR(50) COMMENT '项目名称' ")
    private String projectName;

    @Column(name = "BatchDeliveryDate", columnDefinition = "datetime COMMENT '交货日期' ")
    private Date batchDeliveryDate;

    //
    @Column(name = "Wo", columnDefinition = "VARCHAR(50) COMMENT '工单编号' ")
    private String wo;

    @Column(name = "ProjectCode", columnDefinition = "VARCHAR(50) COMMENT '项目编号' ")
    private String projectCode;

    @Column(name = "BatchPlanCode", columnDefinition = "VARCHAR(50) COMMENT '批次号' ")
    private String batchPlanCode;

    @Column(name = "CurrentBatchCode", columnDefinition = "VARCHAR(50) COMMENT '当前批次' ")
    private String currentBatchCode;

    @Column(name = "BatchCount", columnDefinition = "VARCHAR(50) COMMENT '全部批次' ")
    private Integer batchCount;

    @Column(name = "ProductCode", columnDefinition = "VARCHAR(50) COMMENT '柜体编号' ")
    private String productCode;

    @Column(name = "ProductType", columnDefinition = "VARCHAR(50) COMMENT '柜体类型' ")
    private String productType;

    @Column(name = "Inspection", columnDefinition = "VARCHAR(50) COMMENT '检验结果  / -1 不合格/  1 合格/  2 让步接收' ")
    private String inspection;

    @Column(name = "InspectTime", columnDefinition = "datetime COMMENT '检验时间' ")
    private Date inspectTime;

    @Column(name = "Inspector", columnDefinition = "VARCHAR(50) COMMENT '检验人' ")
    private String inspector;

    @Column(name = "InspectorId", columnDefinition = "VARCHAR(50) COMMENT '检验人id' ")
    private String inspectorId;

    @Column(name = "Memo", columnDefinition = "text COMMENT '备注' ")
    private String memo;
}
